function [available_pixels_coords, available_length] = get_available_pixels(available_map)
available_pixels_idx = find(available_map);
[rows, cols] = ind2sub(size(available_map), available_pixels_idx);
available_pixels_coords = [rows, cols];
available_length = size(available_pixels_coords, 1);
end